<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let str = "../../21456484653.png";
      let str2 =
        "http://10.151.25.45:3000/drop/slice/dsadw/dawdsda-dwa3c5sc64.jpg?aa=sddwa&&dawda";
      console.log(str2.match(/(?:[^"]*\/)?([^\/]*)/)[1]);
      let path = str2.split("/");
      console.log(path);
    </script>
  </body>
</html>
